﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.SalesOrderCommom
{
    /// <summary>
    /// 销售出库表
    /// </summary>
    public class SaleOutOfWarehouse:BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int SaleOutOfWarehouseId { get; set; } 
        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string DocumentNumber { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string DocumentDate { get; set; }
        /// <summary>
        /// 单据状态	
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string DocumentStatus { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string DocumentType { get; set; }
        /// <summary>
        /// 业务类型
         [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string BusinessType { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string BusinessStatus { get; set; }
        /// <summary>
        /// 业务部门
        /// </summary>
        public int BusinessUnit { get; set; }
        /// <summary>
        /// 业务人员
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string BusinessPersonnel { get; set; }
        /// <summary>
        /// 期间
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string Period { get; set; }
        /// <summary>
        /// 仓库(外键)
        /// </summary>
        public int WarehouseId { get; set; }
        /// <summary>
        /// 发货单号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string InvoiceNumber { get; set; }
        /// <summary>
        /// 发货类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string ShippingType { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string ModeDelivery { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string CustomerProfileName { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string NoteInformation { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string OperatorId { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string ItemBianma { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = true)]
        public string SerialNumber { get; set; }
    }
}
